package com.bilibili.service;

import com.bilibili.entity.User;
import io.mybatis.service.BaseService;

public interface UserService extends BaseService<User, Long> {

    String registerByPhone(String phone, String verifyCode);

    String registerByEmail(String email, String verifyCode);

    String login(String account, String password, String verifyCode, Integer type);

    void updateUser(User user);

    void addPassword(Long id, String password, String confirmPassword);

    void updatePassword(Long id, String oldPassword, String newPassword,String confirmPassword);

}
